feat: init sequelize and pgsql - #5
Draft
bianbiandashen wants to merge 3 commits into
Draft
Conversation
hyj1991
reviewed
Jun 30, 2020
| const a = await this.consoleQuery(sql); | ||
| const b = await this.app.model.query('SELECT * FROM user', { raw: true, type: this.app.model.QueryTypes.SELECT }); | ||
| return { a, b }; | ||
| } |
hyj1991
reviewed
Jun 30, 2020
| port: 7092, | ||
| username: 'postgres', | ||
| password: 'LhXQaSzD', | ||
| }; |
Member
|
xtransit-manager 的 db service 的也来个 pr |
hyj1991
self-requested a review
June 30, 2020 08:05
clChenLiang
reviewed
Jul 2, 2020
clChenLiang
left a comment
There was a problem hiding this comment.
建议使用可配置的方式,在部署的时候 ,可以自由选择数据库,而不是直接替换 mysql。
将 app/service/mysql.js 改为 app/service/pgsql.js,原 mysql.js 不变。
使用的地方,做个封装。
hyj1991
force-pushed
the
master
branch
3 times, most recently
from
September 4, 2020 06:26
7cfb537 to
b08429f
Compare
hyj1991
marked this pull request as draft
June 25, 2021 03:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将mysql改成了 sequelize
然后 增加了 pgsql 的init脚本